<?php
// +----------------------------------------------------------------------
// | Qbt CMS Plugin
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.qbt8.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 千佰特 <http://www.qbt8.com>
// +----------------------------------------------------------------------
$http = $_SERVER['REQUEST_URI'];

preg_match('/(.*?)plugin.*?/',$http,$m);
$str = str_replace('public/admin/plugin', 'public/plugin', $m[0]);
$url = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$str.'/qbt_wx_os/wx_reply/valid';
return [
    'wx_name'     => [
        'title' => '公众号名称',
        'type'  => 'text',
        'value' => '',
        'tip'   => ''
    ],
    'token'     => [
        'title' => '公众号TOKEN',
        'type'  => 'text',
        'value' => '',
        'tip'   => ''
    ],
    'appid'     => [
        'title' => 'APPID',
        'type'  => 'text',
        'value' => '',
        'tip'   => ''
    ],
    'appsecret'     => [
        'title' => 'APPSECRET',
        'type'  => 'text',
        'value' => '',
        'tip'   => ''
    ],
    'wx_url'     => [
        'title' => '设置服务器url',
        'type'  => 'text',
        'disabled'  => 'true',
        'value' => $url,
        'tip'   => ''
    ],
];
					